﻿using System;

namespace SocialNetworkClient
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Email"] != null && Session["Password"] != null)
            {
                SignLabel.Text = "Hi, " + Session["Email"] +"!";
                SignInLb.Text  = "Home";

                SignUpLb.Visible  = false;
                SignOutLb.Visible = true;
            }
            else
            {
                SignLabel.Text = "";
                SignInLb.Text  = "Sign In";

                SignUpLb.Visible  = true;
                SignOutLb.Visible = false;
            }
        }
    }
}
